﻿#pragma once

#include <QObject>
#include <QMap>

enum TJ_TYPE {
	TJ_SCRIPT,
};

typedef void* (*GetNewComponentFunc)();
typedef const char* (*GetComponentNameFunc)();
typedef const char* (*GetComponentDescriptionFunc)();

extern QMap<QString,QString> g_FuncMap;
extern QString g_Des;

class TaiJi : public QObject
{
    Q_OBJECT
public:
    TaiJi(QObject *parent = nullptr);
    ~TaiJi();
    void Excute(QString content, TJ_TYPE type = TJ_SCRIPT);
private:
    bool Translate(QString cmdstr);
    bool ExcuteTJ(QString content);
};
